/* //device/system/broncho-ril/ril-cc.h
**
** Copyright 2006, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License"); 
** you may not use this file except in compliance with the License. 
** You may obtain a copy of the License at 
**
**     http://www.apache.org/licenses/LICENSE-2.0 
**
** Unless required by applicable law or agreed to in writing, software 
** distributed under the License is distributed on an "AS IS" BASIS, 
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
** See the License for the specific language governing permissions and 
** limitations under the License.
*/

/** returns 1 if line starts with prefix, 0 if it does not */

#ifndef RIL_SIM_H
#define RIL_SIM_H


typedef enum _RuimEFId
{
	EF_ICCID 	= 0x2fe2,
	EF_ADN		= 0x6F3A,
	EF_FDN 		= 0x6F3B,
	EF_SMS		= 0x6F3C
}RuimEFId;

typedef enum _RuimCommand
{
	COMMAND_SEEK 			= 0xa2,
	COMMAND_READ_BINARY 	= 0xb0,
	COMMAND_READ_RECORD 	= 0xb2,
	COMMAND_GET_RESPONSE 	= 0xc0,
	COMMAND_UPDATE_BINARY 	= 0xd6,
	COMMAND_UPDATE_RECORD 	= 0xdc
}RuimCommand;

typedef enum _RuimReadRecordMode
{
	READ_RECORD_MODE_NEXT_RECORD 	= 2,
	READ_RECORD_MODE_PRE_RECORD		= 3,
	READ_RECORD_MODE_ABSOLUTE 		= 4,
}RuimReadRecordMode;

int RIL_initialize_sim (RIL* thiz);
int RIL_onUnsolicited_sim (RIL* thiz, const char* s);
int RIL_onRequest_sim (RIL* thiz, int request, void *data, size_t datalen, RIL_Token t);
int RIL_getSIMStatus(RIL* thiz);

#endif


